import { defineStore } from 'pinia'
import {userInfo} from '@/api/UserInformation/userInfo'
import {DynamicRouter} from '@/stores/Menu/DynamicRouting/dynamicrouting'
import ggjk from '@/api/ggjk/ggjk'
export const usesmenutore = defineStore('useraa',{

    state:()=>({
      list:[]
      }),
      actions:{
        axiosaa(){
      return  userInfo().then((res:any)=>{
          console.log(res)
          // this.gbsj(res.list)
          DynamicRouter(res.list)
           this.list=res.list
        })
        },
        // gbsj(val?:any){
        //    this.list=val
        //    console.log(this.list)
        // }
         }
})